﻿export default url => {
    const crud = window.$crud(url)

    // 記錄查看
    const outstorelog = (data) => window.$axios({
        url: `erpcase/outstorelog/page`,
        method: 'get',
        params: data,
    })

    // 到票管理
    const invoicelog = (data) => window.$axios({
        url: `erpcase/invoicelog/page`,
        method: 'get',
        params: data,
    })

    // 生产记录
    const productlog = (data) => window.$axios({
        url: `erpcase/productlog/page`,
        method: 'get',
        params: data,
    })

    // 操作记录
    const log = (data) => window.$axios({
        url: `erpcase/log/page`,
        method: 'get',
        params: data,
    })
    return {
        ...crud,
        outstorelog,
        invoicelog,
        log,
        productlog,
    }
}